package com.dtagri.fjwlw.adapter.viewholders;

import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.dtagri.fjwlw.R;
import com.dtagri.fjwlw.widget.togglebutton.ToggleButton;

/**
 * @author wxjn
 * 
 */
public class DeviceControlViewHolder extends ViewHolder {
	public TextView tvArea;
	public TextView tvDeviceName;
	public ToggleButton tbDevice;
	public RelativeLayout titleLine;
	public ImageButton controlVideo;

	@Override
	protected int getItemLayout() {
		return R.layout.list_cell_device_control;
	}

	@Override
	protected void initWidgets() {
		tvArea = (TextView) findViewById(R.id.tv_realtime_data_area);
		tvDeviceName = (TextView) findViewById(R.id.tv_device_name);
		tbDevice = (ToggleButton) findViewById(R.id.tb_device);
		titleLine = (RelativeLayout) findViewById(R.id.title_line);
		controlVideo = (ImageButton) findViewById(R.id.ib_control_video);
	}
}
